import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'//引入中文语言
import * as ElementPlusIconsVue from '@element-plus/icons-vue'//引入图标
import App from './App.vue'
import router from './router'
// 引入自定义公共样式
import './assets/css/style.scss'
import './assets/css/initialization.scss'
// // element样式修改
import './assets/css/element.scss'
// 全局组件挂载
import GlobalComponents from './components/global.js'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(GlobalComponents)
app.mount('#app')